<!-- eslint-disable vue/multi-word-component-names -->
<script setup>
defineProps({
  items: {
    type: Array,
    required: true
  }
});
</script>

<template>
    <nav>
      <ul>
        <li v-for="(item, index) in items" :key="index">
          <router-link :to="item.path">{{ item.label }}</router-link>
          <span v-if="index < items.length - 1"> > </span> <!-- 分隔符 -->
        </li>
      </ul>
    </nav>
</template>